package cn.melonlib.cores.commons.comp.utils;

import cn.hutool.crypto.SecureUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class SecurityUtil {

    public String signature(String clientId,String secret,long timestamp,String random){
        return SecureUtil.sha1(clientId+"&"+secret+"&"+timestamp+"&"+random);
    }

}
